﻿
<div id="bodyABMCompetidores" style="border-width:thin; border-color:Blue; border-style:inset">
<table>
    <tr>
        <td style="font-size:x-large;">
        ABM Competidores
        </td>
    </tr>
    <tr>
        <td>
        <table>
            <tr>
                <td valign=top>        
                Competidores seguidos:<br />
                <asp:listbox runat="server" id="listboxCompetidoresSeguidos" Width="244px" DataSourceID="SqlDataSourceCompetidoresSeguidos" 
                DataTextField="nombreCompetidor" DataValueField="id"></asp:listbox>  
                <asp:SqlDataSource ID="SqlDataSourceCompetidoresSeguidos" runat="server" 
                ConnectionString="data source=.;integrated security=SSPI;initial catalog=w1550972_mym" 
                ProviderName="System.Data.SqlClient" SelectCommand="SELECT nombre + ' ' + descripcion as [nombreCompetidor], id  FROM Competidores">
                </asp:SqlDataSource>        
                </td>
                <td valign=top>
                 <asp:button runat="server" id="buttonEditarCompetidor" text="Editar Competidor" style="font-family:Eurostile; color:Blue; border-color:Blue; background-color:Black"  /> 
                 <asp:button runat="server" id="buttonBorrarCompetidor" text="Borrar Competidor" style="font-family:Eurostile; color:Blue; border-color:Blue; background-color:Black"  />                  
                </td>
            </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td>
            Competidor ID Mercado Libre: <br /> <asp:textbox runat="server" id="textBoxCompetidorIDMercadoLibre" size="100px" ></asp:textbox>
        </td>
    </tr>      
    <tr>
        <td>
            Competidor Nombre: <br /> <asp:textbox runat="server" id="textBoxCompetidorNombre" size="100px"></asp:textbox>
        </td>
    </tr>          
    <tr>
        <td>
            Competidor Descripcion: <br /> <asp:textbox runat="server" id="textBoxCompetidorDescripcion" size="100px" ></asp:textbox>
        </td>
    </tr>      
    <tr>
        <td>
            CoCompetCompetidor Rubro:  <br />
            <asp:dropdownlist runat="server" 
                id="dropDownListRubrosDisponibles" DataSourceID="SqlDataSourceRubros" 
                DataTextField="descRubro" DataValueField="idRubro" Width="239px" ></asp:dropdownlist>
            <asp:SqlDataSource ID="SqlDataSourceRubros" runat="server" 
                ConnectionString="data source=.;integrated security=SSPI;initial catalog=w1550972_mym" 
                ProviderName="System.Data.SqlClient" SelectCommand="SELECT idRubro,descRubro  FROM Rubros">
            </asp:SqlDataSource>       
        </td>
    </tr>
    <tr>
        <td>        
            <asp:button runat="server" id="buttonAgregarCompetidor" 
                text="Agregar Competidor" 
                
                style="font-family:Eurostile; color:Blue; border-color:Blue; background-color:Black" onClientClick="buttonAgregarCompetidor_Click" 
                 />    
        </td>
    </tr>
</table>
</div>

